1 import java.awt.*;
2 import java.awt.event.*;
3
4 public class PerfMaster extends Frame implements WindowListener {
5 public PerfMaster() {
6 addWindowListener(this);
7 }
8
9 public void windowOpened(WindowEvent e) {
10 }
11
12 public void windowClosing(WindowEvent e) {
13 System.exit(0);
14 }
15
16 public void windowClosed(WindowEvent e) {
17 }
18
19 public void windowIconified(WindowEvent e) {
20 }
21
22 public void windowDeiconified(WindowEvent e) {
23 }
24
25 public void windowActivated(WindowEvent e) {
26 }
27
28 public void windowDeactivated(WindowEvent e) {
29 }
30
31 public static void main(String args[]) {
32 Frame f = new PerfMaster();
33 MasterUI theUI = new MasterUI(f);
34 Controller control = new Controller(theUI);
35 control.start();
36 }
37 }
38
|